package com.zzyl.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Reservation",description = "预约实体类")
public class Reservation {

    @ApiModelProperty(value = "主键ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "用户id",example = "10")
    private Integer userId;


    @ApiModelProperty(value = "预约人姓名", example = "张三")
    private String name;


    @ApiModelProperty(value = "预约人手机号", example = "13800000000")
    private String mobile;


    @ApiModelProperty(value = "预约时间", example = "2023-04-01T10:00:00")
    private LocalDateTime time;


    @ApiModelProperty(value = "探访人", example = "李四")
    private String visitor;


    @ApiModelProperty(value = "预约类型，0：参观预约，1：探访预约", example = "0")
    private Integer type;


    @ApiModelProperty(value = "预约状态，0：待报道，1：已完成，2：取消，3：过期", example = "0")
    private Integer status;


    @ApiModelProperty(value = "创建时间", example = "2023-04-01T08:00:00")
    private LocalDateTime createTime;


    @ApiModelProperty(value = "更新时间", example = "2023-04-01T10:00:00")
    private LocalDateTime updateTime;


    @ApiModelProperty(value = "创建人id", example = "1")
    private Long createBy;


    @ApiModelProperty(value = "更新人id", example = "1")
    private Long updateBy;


    @ApiModelProperty(value = "备注")
    private String remark;

}
